package com.itheima.dao;

import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface CheckItemMapper {

    /**
     * 根据检查组id查询检查项
     * @param checkGroupId
     * @return
     */
    @Select("select * from t_checkitem where id in (select checkitem_id from t_checkgroup_checkitem where checkgroup_id=#{checkgroupId})")
    ArrayList<CheckItem> findByCheckGroupId(Integer checkGroupId);
}
